<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<SCRIPT type="text/javascript">
$(document).ready(function(){
		$("#sysCode").bind("blur", function(){
			var sysCode = $("#sysCode").val();
			var sysCode1 = $("#sysCode1").val();
			if(sysCode!=sysCode1){
					$.ajax({   
				    url:'${ctx}/management/system/checkSysCode.do?sysCode='+sysCode,   
				    type:'post',   
				    async : true, //默认为true 异步   
				    error:function(){   
				       alert('error');   
				    },   
				    success:function(data){
				    	var rtnObj = eval('(' + data + ')');
				    	if(!rtnObj.isFlag){
				    		$("#sysCode").alertmsg('error', rtnObj.msg);
				    		$("#sysCode").val("");
				    	}
				    }
				});
			}
		})
	})
</SCRIPT>		
<div class="bjui-pageContent">
    <form action="${ctx}/management/system/update.do" data-toggle="validate" data-reload-navtab="true">
        <input type="hidden" name="intID" value="${vo.intID}">
         <input type="hidden" name="sysCode1" id="sysCode1" value="${vo.sysCode}" size="30">
        <div class="pageFormContent" data-layout-h="0">
            <table class="table table-condensed table-hover" width="100%">
                <tbody>
                  <tr>
                        <td colspan="2">
                            <label class="control-label x100">系统编码：</label>
                            <input type="text" id="sysCode" name="sysCode" value="${vo.sysCode}" size="30">
                        </td>
                    </tr>
                      <tr>
                        <td colspan="2">
                            <label class="control-label x100">属性名：</label>
                            <input type="text" name="attrName" value="${vo.attrName}" size="30">
                        </td>
                    </tr>
                      <tr>
                        <td colspan="2">
                            <label class="control-label x100">属性值：</label>
                            <input type="text" name="attrValue" value="${vo.attrValue}" size="30">
                        </td>
                    </tr>
                      <tr>
                        <td colspan="2">
                            <label class="control-label x100">备注：</label>
                            <input type="text" name="attrRemark" value="${vo.attrRemark}" size="30">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <label class="control-label x100">系统IP：</label>
                            <input type="text" name="sysIp" value="${vo.sysIp}" size="30">
                        </td>
                    </tr>
                     <tr>
                        <td colspan="2">
                            <label class="control-label x100">系统WEB：</label>
                            <input type="text" name="sysWeb" value="${vo.sysWeb}" size="30">
                        </td>
                    </tr>
                    
                </tbody>
            </table>
        </div>
    </form>
</div>

<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
    </ul>
</div>